import request from '@/utils/request'

// 查询报名人员比赛轨迹列表
export function listTrail(query) {
  return request({
    url: '/hps/trail/list',
    method: 'get',
    params: query
  })
}

// 查询报名人员比赛轨迹详细
export function getTrail(id) {
  return request({
    url: '/hps/trail/' + id,
    method: 'get'
  })
}

// 新增报名人员比赛轨迹
export function addTrail(data) {
  return request({
    url: '/hps/trail',
    method: 'post',
    data: data
  })
}

// 修改报名人员比赛轨迹
export function updateTrail(data) {
  return request({
    url: '/hps/trail',
    method: 'put',
    data: data
  })
}

// 删除报名人员比赛轨迹
export function delTrail(id) {
  return request({
    url: '/hps/trail/' + id,
    method: 'delete'
  })
}

// 导出报名人员比赛轨迹
export function exportTrail(query) {
  return request({
    url: '/hps/trail/export',
    method: 'get',
    params: query
  })
}